package cn.jieruoda.eb.system.domain.entity;

import java.io.Serializable;
import java.util.Date;

import jakarta.persistence.Column;
import jakarta.persistence.Entity;
import jakarta.persistence.GeneratedValue;
import jakarta.persistence.GenerationType;
import jakarta.persistence.Id;
import jakarta.persistence.Table;

import lombok.Data;

/**
 * 组合数据详情表
 */
@Data
@Entity
@Table(name = "system_group_data")
public class SystemGroupData implements Serializable {
    
    private static final long serialVersionUID = 1L;
    
    /**
     * 组合数据详情ID
     */
    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    private Integer id;
    
    /**
     * 对应的数据组id
     */
    @Column(name = "gid", nullable = false)
    private Integer gid;
    
    /**
     * 数据组对应的数据值（json数据）
     */
    @Column(name = "value", nullable = false, columnDefinition = "text")
    private String value;
    
    /**
     * 数据排序
     */
    @Column(name = "sort", nullable = false)
    private Integer sort;
    
    /**
     * 状态（1：开启；2：关闭；）
     */
    @Column(name = "status", nullable = false)
    private Integer status;
    
    /**
     * 创建时间
     */
    @Column(name = "create_time")
    private Date createTime;
    
    /**
     * 更新时间
     */
    @Column(name = "update_time")
    private Date updateTime;
} 